//public class Data {
//    public int year;
//    public int month;
//    public int day;
//    public void setDate(int y,int m ,int d){
//        year = y;
//        month = m;
//        day = d;
//    }
//    public void printDate() {
//        System.out.println("年：" + year + "月" + month + "日：" + day);
//    }
//    public static void main(String[] args) {
//        Data date = new Data();
//        date.setDate(2023,4,20);
//        date.printDate();
//    }
//}




//public class Data {
//    public int year;
//    public int month;
//    public int day;
//    public void setDate(int year,int month ,int day){
//        this.year = year;
//        this.month = month;
//        this.day = day;
//    }
//    public void printDate() {
//        System.out.println("年：" + this.year + "月" + this.month + "日：" + this.day);
//    }
//    public static void main(String[] args) {
//        Data date = new Data();
//        date.setDate(2023,4,20);
//        date.printDate();
//        System.out.println("=================================");
//        Data data2 = new Data;
//        date.setDate(2023,4,21);
//        data2.printDate();
//    }
//}







/*
//二维数组的遍历

import java.util.Arrays;

public class Data {
    public static void func(int[][] array){
        for (int i = 0; i < 2; i++) {
            for (int j = 0; j < 3; j++) {
                System.out.print(array[i][j] + " ");
            }
            System.out.println();
        }
    }
    public static void main(String[] args) {
        int[][] array= new int[][]{{1, 2, 3},{4, 5, 6}};
        int[][] array1 = new int[2][3];
        int[][] array2 = {{1, 2, 3},{4, 5, 6}};
        func(array);
        System.out.println(Arrays.toString(array));
    }
}*/







/*//二维数组

public class Data {
    public static void main(String[] args) {
        int[][] array1 = {{1, 2, 3},{4 , 5 ,6 }};
        System.out.println(array1[0]);
        System.out.println(array1[1]);
        System.out.println(array1[0].length);
        System.out.println(array1[1].length);
        System.out.println(array1.length);
    }
}*/








/*
//二维数组的遍历

import java.util.Arrays;

public class Data {
    public static void func(int[][] array){
        for (int i = 0; i < array.length; i++) {
            for (int j = 0; j < array[i].length; j++) {
                System.out.print(array[i][j] + " ");
            }
            System.out.println();
        }
    }
    public static void main(String[] args) {
        int[][] array= new int[][]{{1, 2, 3},{4, 5, 6}};
        int[][] array1 = new int[2][3];
        int[][] array2 = {{1, 2, 3},{4, 5, 6}};
        func(array);
        System.out.println(Arrays.toString(array[0]));
        System.out.println(Arrays.toString(array[1]));
        System.out.println(Arrays.deepToString(array));
    }
}*/








/*
//不规则数组打印

import java.util.Arrays;

public class Data {
    public static void main(String[] args) {
        int[][] array= new int[2][];
        array[0] = new int[]{1, 2 ,3};
        array[1] = new int[]{4 , 6 , 7 , 11 , 14 , 16};
        System.out.println(Arrays.deepToString(array));
    }
}*/
